package cn.com.roy.thread.t3_3_2.threadlocaltest;

public class ThreadA extends Thread{

    @Override
    public void run() {
        super.run();
        try {
            for (int i = 0; i < 100; i++) {
                Tools.t1.set("ThreadA " + (i+1));
                System.out.println("ThreadA get value =" + Tools.t1.get() );
                Thread.sleep(500);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
